{% load static from staticfiles %}
{% if url == '/' %}
    <div id="layerslider" style="width: 100%; height: 1000px;">
    {% for carousel_page in carousel_page_list %}
                <div class="ls-slide" data-ls="slidedelay:4000; transition2d:5; timeshift: -1000;">
                    <img src="{{carousel_page.img.url}}" class="ls-bg" alt="图片">
                </div>
    {% endfor %}
    </div>
{% else %}
    <div id="layerslider" style="width: 100%; height: 500px;">
    {% for carousel_page in carousel_page_list %}
        <div class="ls-slide" data-ls="transition2d:5; timeshift: -1000;">
            <img src="{{carousel_page.img.url}}" class="ls-bg" alt="图片">
        </div>
    {% endfor %}
    </div>
{% endif %}

